package com.example.syl.basaimovie.parsejson;

import android.util.Log;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by syl on 2017/1/6.
 */
public class ParseUtils {
    public static List<String> welcomeParse(String json){
        List<String> list=new ArrayList<>();
        Log.e("TS","666666");
        try {
            JSONObject jsonObject=new JSONObject(json);
            JSONObject object=jsonObject.getJSONObject("splash");
            String imageurl=object.getString("imgurl");
            list.add(imageurl);
            Log.e("TS",list.get(0));
            return list;
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return null;
    }

}
